﻿@{
    ViewBag.Title = Local("ApplicationManagement");
}

@model IEnumerable<ApplicationBase>

@using (Html.BeginForm())
{ 
    <div class="box tright">
        <button>@Local("ApplicationBase.LoadAllApplications")</button>
    </div>
}

<div class="box">
    <table cellpadding="0" cellspacing="0">
        <thead>
            <tr>
                <td>@Local("ApplicationBase.ApplicationName")</td>
                <td class="w100">@Local("ApplicationBase.AreaName")</td>
                <td>@Local("ApplicationBase.Author")</td>
                <td>@Local("ApplicationBase.UpdateDate")</td>
                <td>@Local("ApplicationBase.CreateDate")</td>
                <td>@Local("ApplicationBase.VersionString")</td>
                <td class="tcenter">@Local("ApplicationBase.SupportUrl")</td>
                <td class="action">@Local("ApplicationBase.Action")</td>
            </tr>
        </thead>
        <tbody class="hoverline">
        @foreach (var application in Model)
        { 
            <tr>
                <td>@application.ApplicationName</td>
                <td class="w100">@application.AreaName</td>
                <td>@application.Author</td>
                <td>@application.UpdateDate.ToLocalDateTimeString()</td>
                <td>@application.CreateDate.ToLocalDateTimeString()</td>
                <td>@application.VersionString (@application.VersionBuild)</td>
                <td class="tcenter">@if(!string.IsNullOrEmpty(application.SupportUrl)){<a href="@application.SupportUrl" target="_blank">@Local("ApplicationBase.View")</a>}</td>
                <td class="action"><a href="@application.ConfigurationUrl">@Local("ApplicationBase.Settings")</a></td>
            </tr>
        }
        </tbody>
    </table>
</div>
